[INFO] cloning repository https://github.com/UnTraDe/terraria-autoswing
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/UnTraDe/terraria-autoswing" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 41097a0acc410e521e4f07f9bc4e6a680d5ad068
[INFO] building UnTraDe/terraria-autoswing against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnTraDe%2Fterraria-autoswing" "/workspace/builds/worker-3/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/UnTraDe/terraria-autoswing on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/UnTraDe/terraria-autoswing
[INFO] finished tweaking git repo https://github.com/UnTraDe/terraria-autoswing
[INFO] tweaked toml for git repo https://github.com/UnTraDe/terraria-autoswing written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/UnTraDe/terraria-autoswing already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] beb4e416368aa8d0615a3e112212db74cd670478425a592d7b6a64f4872ca09e
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "beb4e416368aa8d0615a3e112212db74cd670478425a592d7b6a64f4872ca09e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "beb4e416368aa8d0615a3e112212db74cd670478425a592d7b6a64f4872ca09e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "beb4e416368aa8d0615a3e112212db74cd670478425a592d7b6a64f4872ca09e", kill_on_drop: false }`
[INFO] [stdout] beb4e416368aa8d0615a3e112212db74cd670478425a592d7b6a64f4872ca09e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 943fd8994e1befdb9228b564123d694f47ecc5e84e5e4701e145df131dfe1a0f
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "943fd8994e1befdb9228b564123d694f47ecc5e84e5e4701e145df131dfe1a0f", kill_on_drop: false }`
[INFO] [stderr]    Compiling winapi v0.3.8
[INFO] [stderr]    Compiling terraria-autoswing v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `winapi::um`
[INFO] [stdout]  --> src/main.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use winapi::um::*;
[INFO] [stdout]   |             ^^ could not find `um` in `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `winapi::shared`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use winapi::shared;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^ no `shared` in the root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `winapi::ctypes`, `shared::minwindef::DWORD`, `shared::minwindef::BOOL`, `shared::minwindef::HINSTANCE__`
[INFO] [stdout]  --> src/main.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 | use shared::minwindef::{DWORD, BOOL, HINSTANCE__};
[INFO] [stdout]   |                         ^^^^^  ^^^^  ^^^^^^^^^^^
[INFO] [stdout] 7 | use winnt::HANDLE;
[INFO] [stdout] 8 | use winapi::ctypes::c_void;
[INFO] [stdout]   |             ^^^^^^ could not find `ctypes` in `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `winnt`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use winnt::HANDLE;
[INFO] [stdout]   |     ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32`
[INFO] [stdout]   --> src/main.rs:15:18
[INFO] [stdout]    |
[INFO] [stdout] 15 |         let snapshot = tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0);
[INFO] [stdout]    |                        ^^^^^^^^ use of undeclared crate or module `tlhelp32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32`
[INFO] [stdout]   --> src/main.rs:15:53
[INFO] [stdout]    |
[INFO] [stdout] 15 |         let snapshot = tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0);
[INFO] [stdout]    |                                                           ^^^^^^^^ use of undeclared crate or module `tlhelp32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32`
[INFO] [stdout]   --> src/main.rs:17:19
[INFO] [stdout]    |
[INFO] [stdout] 17 |         let mut entry = tlhelp32::PROCESSENTRY32 {
[INFO] [stdout]    |                         ^^^^^^^^ use of undeclared crate or module `tlhelp32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32`
[INFO] [stdout]   --> src/main.rs:18:22
[INFO] [stdout]    |
[INFO] [stdout] 18 |             dwSize: size_of::<tlhelp32::PROCESSENTRY32>() as u32,
[INFO] [stdout]    |                               ^^^^^^^^ use of undeclared crate or module `tlhelp32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32`
[INFO] [stdout]   --> src/main.rs:30:6
[INFO] [stdout]    |
[INFO] [stdout] 30 |         if tlhelp32::Process32First(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 {
[INFO] [stdout]    |            ^^^^^^^^ use of undeclared crate or module `tlhelp32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32`
[INFO] [stdout]   --> src/main.rs:30:60
[INFO] [stdout]    |
[INFO] [stdout] 30 |         if tlhelp32::Process32First(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 {
[INFO] [stdout]    |                                                                  ^^^^^^^^ use of undeclared crate or module `tlhelp32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32`
[INFO] [stdout]   --> src/main.rs:40:10
[INFO] [stdout]    |
[INFO] [stdout] 40 |             while tlhelp32::Process32Next(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 {
[INFO] [stdout]    |                   ^^^^^^^^ use of undeclared crate or module `tlhelp32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tlhelp32`
[INFO] [stdout]   --> src/main.rs:40:63
[INFO] [stdout]    |
[INFO] [stdout] 40 |             while tlhelp32::Process32Next(snapshot, &mut entry as *mut tlhelp32::PROCESSENTRY32) != 0 {
[INFO] [stdout]    |                                                                        ^^^^^^^^ use of undeclared crate or module `tlhelp32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handleapi`
[INFO] [stdout]   --> src/main.rs:50:3
[INFO] [stdout]    |
[INFO] [stdout] 50 |         handleapi::CloseHandle(snapshot);
[INFO] [stdout]    |         ^^^^^^^^^ use of undeclared crate or module `handleapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi`
[INFO] [stdout]   --> src/main.rs:56:61
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option<psapi::MODULEINFO> {
[INFO] [stdout]    |                                                             ^^^^^ use of undeclared crate or module `psapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi`
[INFO] [stdout]   --> src/main.rs:62:6
[INFO] [stdout]    |
[INFO] [stdout] 62 | ...   if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST...
[INFO] [stdout]    |          ^^^^^ use of undeclared crate or module `psapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi`
[INFO] [stdout]   --> src/main.rs:62:123
[INFO] [stdout]    |
[INFO] [stdout] 62 | ...NCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 {
[INFO] [stdout]    |                                               ^^^^^ use of undeclared crate or module `psapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi`
[INFO] [stdout]   --> src/main.rs:68:8
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 if psapi::GetModuleBaseNameA(process, modules[i], &mut buf[0] as *mut i8, 128) != 0 {
[INFO] [stdout]    |                    ^^^^^ use of undeclared crate or module `psapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi`
[INFO] [stdout]   --> src/main.rs:73:22
[INFO] [stdout]    |
[INFO] [stdout] 73 |                         let mut info = psapi::MODULEINFO {
[INFO] [stdout]    |                                        ^^^^^ use of undeclared crate or module `psapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi`
[INFO] [stdout]   --> src/main.rs:74:39
[INFO] [stdout]    |
[INFO] [stdout] 74 | ...                   lpBaseOfDll: 0 as *mut winapi::ctypes::c_void,
[INFO] [stdout]    |                                                      ^^^^^^ could not find `ctypes` in `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi`
[INFO] [stdout]   --> src/main.rs:76:38
[INFO] [stdout]    |
[INFO] [stdout] 76 | ...                   EntryPoint: 0 as *mut winapi::ctypes::c_void
[INFO] [stdout]    |                                                     ^^^^^^ could not find `ctypes` in `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi`
[INFO] [stdout]   --> src/main.rs:79:10
[INFO] [stdout]    |
[INFO] [stdout] 79 | ...   if psapi::GetModuleInformation(process, modules[0], &mut info as *mut psapi::MODULEINFO, size_of::<psapi::MODULEINFO>() as DWORD) !...
[INFO] [stdout]    |          ^^^^^ use of undeclared crate or module `psapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi`
[INFO] [stdout]   --> src/main.rs:79:77
[INFO] [stdout]    |
[INFO] [stdout] 79 | ...   if psapi::GetModuleInformation(process, modules[0], &mut info as *mut psapi::MODULEINFO, size_of::<psapi::MODULEINFO>() as DWORD) !...
[INFO] [stdout]    |                                                                             ^^^^^ use of undeclared crate or module `psapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `psapi`
[INFO] [stdout]   --> src/main.rs:79:106
[INFO] [stdout]    |
[INFO] [stdout] 79 | ... info as *mut psapi::MODULEINFO, size_of::<psapi::MODULEINFO>() as DWORD) != 0 {
[INFO] [stdout]    |                                               ^^^^^ use of undeclared crate or module `psapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi`
[INFO] [stdout]   --> src/main.rs:82:18
[INFO] [stdout]    |
[INFO] [stdout] 82 | ...                   let err = errhandlingapi::GetLastError();
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi`
[INFO] [stdout]   --> src/main.rs:89:16
[INFO] [stdout]    |
[INFO] [stdout] 89 |                     let err = errhandlingapi::GetLastError();
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi`
[INFO] [stdout]   --> src/main.rs:95:14
[INFO] [stdout]    |
[INFO] [stdout] 95 |             let err = errhandlingapi::GetLastError();
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt`
[INFO] [stdout]    --> src/main.rs:129:19
[INFO] [stdout]     |
[INFO] [stdout] 129 |             let mut info = winnt::MEMORY_BASIC_INFORMATION {
[INFO] [stdout]     |                            ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi`
[INFO] [stdout]    --> src/main.rs:139:17
[INFO] [stdout]     |
[INFO] [stdout] 139 | ...   let filled = memoryapi::VirtualQueryEx(process, current_addr as *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, s...
[INFO] [stdout]     |                    ^^^^^^^^^ use of undeclared crate or module `memoryapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt`
[INFO] [stdout]    --> src/main.rs:139:101
[INFO] [stdout]     |
[INFO] [stdout] 139 | ...t_addr as *const c_void, &mut info as *mut winnt::MEMORY_BASIC_INFORMATION, size_of::<winnt::MEMORY_BASIC_INFORMATION>());
[INFO] [stdout]     |                                               ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt`
[INFO] [stdout]    --> src/main.rs:139:144
[INFO] [stdout]     |
[INFO] [stdout] 139 | ...winnt::MEMORY_BASIC_INFORMATION, size_of::<winnt::MEMORY_BASIC_INFORMATION>());
[INFO] [stdout]     |                                               ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt`
[INFO] [stdout]    --> src/main.rs:144:21
[INFO] [stdout]     |
[INFO] [stdout] 144 |             if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOAC...
[INFO] [stdout]     |                              ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt`
[INFO] [stdout]    --> src/main.rs:144:64
[INFO] [stdout]     |
[INFO] [stdout] 144 |             if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOAC...
[INFO] [stdout]     |                                                                         ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt`
[INFO] [stdout]    --> src/main.rs:144:107
[INFO] [stdout]     |
[INFO] [stdout] 144 |             if (info.State & winnt::MEM_COMMIT) != 0 && (info.Protect & winnt::PAGE_GUARD) == 0 && (info.Protect & winnt::PAGE_NOAC...
[INFO] [stdout]     |                                                                                                                    ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi`
[INFO] [stdout]    --> src/main.rs:151:8
[INFO] [stdout]     |
[INFO] [stdout] 151 | ...   if memoryapi::ReadProcessMemory(process, info.BaseAddress, buf.as_mut_ptr() as *mut c_void, info.RegionSize, &mut bytes_read as *mu...
[INFO] [stdout]     |          ^^^^^^^^^ use of undeclared crate or module `memoryapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi`
[INFO] [stdout]    --> src/main.rs:152:16
[INFO] [stdout]     |
[INFO] [stdout] 152 |                     let err = errhandlingapi::GetLastError();
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi`
[INFO] [stdout]    --> src/main.rs:192:6
[INFO] [stdout]     |
[INFO] [stdout] 192 |         if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 {
[INFO] [stdout]     |            ^^^^^^^^^ use of undeclared crate or module `memoryapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt`
[INFO] [stdout]    --> src/main.rs:192:55
[INFO] [stdout]     |
[INFO] [stdout] 192 |         if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 {
[INFO] [stdout]     |                                                             ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi`
[INFO] [stdout]    --> src/main.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |             let err = errhandlingapi::GetLastError();
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi`
[INFO] [stdout]    --> src/main.rs:199:6
[INFO] [stdout]     |
[INFO] [stdout] 199 | ...   if memoryapi::WriteProcessMemory(process, addr, &nop_array[0] as *const u8 as *const c_void, size, &mut bytes_written as *mut usize...
[INFO] [stdout]     |          ^^^^^^^^^ use of undeclared crate or module `memoryapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi`
[INFO] [stdout]    --> src/main.rs:200:14
[INFO] [stdout]     |
[INFO] [stdout] 200 |             let err = errhandlingapi::GetLastError();
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `memoryapi`
[INFO] [stdout]    --> src/main.rs:206:6
[INFO] [stdout]     |
[INFO] [stdout] 206 |         if memoryapi::VirtualProtectEx(process, addr, size, old_protect, &mut temp as *mut DWORD) == 0 {
[INFO] [stdout]     |            ^^^^^^^^^ use of undeclared crate or module `memoryapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `errhandlingapi`
[INFO] [stdout]    --> src/main.rs:207:14
[INFO] [stdout]     |
[INFO] [stdout] 207 |             let err = errhandlingapi::GetLastError();
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^ use of undeclared crate or module `errhandlingapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `processthreadsapi`
[INFO] [stdout]    --> src/main.rs:222:18
[INFO] [stdout]     |
[INFO] [stdout] 222 |             let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id);
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `processthreadsapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winnt`
[INFO] [stdout]    --> src/main.rs:222:49
[INFO] [stdout]     |
[INFO] [stdout] 222 |             let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id);
[INFO] [stdout]     |                                                          ^^^^^ use of undeclared crate or module `winnt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `handleapi`
[INFO] [stdout]    --> src/main.rs:237:4
[INFO] [stdout]     |
[INFO] [stdout] 237 |             handleapi::CloseHandle(process);
[INFO] [stdout]     |             ^^^^^^^^^ use of undeclared crate or module `handleapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]   --> src/main.rs:10:50
[INFO] [stdout]    |
[INFO] [stdout] 10 | fn find_process_id_by_name(name: &str) -> Option<DWORD> {
[INFO] [stdout]    |                           -                      ^^^^^ not found in this scope
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           help: you might be missing a type parameter: `<DWORD>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope
[INFO] [stdout]   --> src/main.rs:58:32
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let mut modules = [0 as *mut HINSTANCE__; 1024];
[INFO] [stdout]    |                                      ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope
[INFO] [stdout]   --> src/main.rs:59:30
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option<psapi::MODULEINFO> {
[INFO] [stdout]    |                   - help: you might be missing a type parameter: `<HINSTANCE__>`
[INFO] [stdout] ...
[INFO] [stdout] 59 |         let size = size_of::<[*mut HINSTANCE__; 1024]>() as DWORD;
[INFO] [stdout]    |                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]   --> src/main.rs:59:55
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let size = size_of::<[*mut HINSTANCE__; 1024]>() as DWORD;
[INFO] [stdout]    |                                                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]   --> src/main.rs:60:28
[INFO] [stdout]    |
[INFO] [stdout] 60 |         let mut used_size = 0 as DWORD;
[INFO] [stdout]    |                                  ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope
[INFO] [stdout]   --> src/main.rs:62:74
[INFO] [stdout]    |
[INFO] [stdout] 62 | ...   if psapi::EnumProcessModulesEx(process, &mut (modules[0]) as *mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST...
[INFO] [stdout]    |                                                                              ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]   --> src/main.rs:62:116
[INFO] [stdout]    |
[INFO] [stdout] 62 | ...*mut *mut HINSTANCE__, size, &mut used_size as *mut DWORD, psapi::LIST_MODULES_ALL) != 0 {
[INFO] [stdout]    |                                                        ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `HINSTANCE__` in this scope
[INFO] [stdout]   --> src/main.rs:64:59
[INFO] [stdout]    |
[INFO] [stdout] 56 | fn get_module_info(process: HANDLE, module: &str) -> Option<psapi::MODULEINFO> {
[INFO] [stdout]    |                   - help: you might be missing a type parameter: `<HINSTANCE__>`
[INFO] [stdout] ...
[INFO] [stdout] 64 |             let module_count = used_size as usize / size_of::<*mut HINSTANCE__>();
[INFO] [stdout]    |                                                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]   --> src/main.rs:79:130
[INFO] [stdout]    |
[INFO] [stdout] 79 | ...sapi::MODULEINFO, size_of::<psapi::MODULEINFO>() as DWORD) != 0 {
[INFO] [stdout]    |                                                        ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]    --> src/main.rs:190:30
[INFO] [stdout]     |
[INFO] [stdout] 190 |         let mut old_protect = 0 as DWORD;
[INFO] [stdout]     |                                    ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]    --> src/main.rs:192:111
[INFO] [stdout]     |
[INFO] [stdout] 192 |         if memoryapi::VirtualProtectEx(process, addr, size, winnt::PAGE_EXECUTE_READWRITE, &mut old_protect as *mut DWORD) == 0 {
[INFO] [stdout]     |                                                                                                                     ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]    --> src/main.rs:204:23
[INFO] [stdout]     |
[INFO] [stdout] 204 |         let mut temp = 0 as DWORD; // According to the MSDN documentation the function will fail if lpflOldProtect is null
[INFO] [stdout]     |                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope
[INFO] [stdout]    --> src/main.rs:206:86
[INFO] [stdout]     |
[INFO] [stdout] 206 |         if memoryapi::VirtualProtectEx(process, addr, size, old_protect, &mut temp as *mut DWORD) == 0 {
[INFO] [stdout]     |                                                                                            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/main.rs:222:85
[INFO] [stdout]     |
[INFO] [stdout] 222 |             let process = processthreadsapi::OpenProcess(winnt::PROCESS_ALL_ACCESS, false as BOOL, process_id);
[INFO] [stdout]     |                                                                                              ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 59 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `terraria-autoswing`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "943fd8994e1befdb9228b564123d694f47ecc5e84e5e4701e145df131dfe1a0f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "943fd8994e1befdb9228b564123d694f47ecc5e84e5e4701e145df131dfe1a0f", kill_on_drop: false }`
[INFO] [stdout] 943fd8994e1befdb9228b564123d694f47ecc5e84e5e4701e145df131dfe1a0f
